package com.draven.service;

import com.draven.entity.Module;

import java.util.List;

/**
 * Created by Draven on 2017/4/13.
 * E-mail:draven1122@163.com
 */
public interface ModuleService {
    public static String SERVICE_NAME = "moduleService";

    Module getModule(String id) throws Exception;

    int updateModule(Module module) throws Exception;

    int updateModuleSelective(Module module) throws Exception;

    int removeModule(String id) throws Exception;

    int addModule(Module module) throws Exception;

    int addModuleSelective(Module module) throws Exception;

    List<Module> listModulesByParentId(String parent) throws Exception;

}
